package com.itheima.dao;

import java.util.Date;

/**
 * 依赖注入：set方式注入
 */
public class DIConstructor2 {
    public String username;
    public String password;
    public Integer year;
    public Date createdAt;

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "DIConstructor{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", year=" + year +
                ", createdAt=" + createdAt +
                '}';
    }
}
